package tables;

public class SaleGoods {
    private int goods_id;
    private int order_id;
    private String goods_name;
    private int goods_amount;
    private double goods_total;

    public SaleGoods(int goods_id, int order_id, String goods_name, int goods_amount, double goods_total) {
        this.goods_id = goods_id;
        this.order_id = order_id;
        this.goods_name = goods_name;
        this.goods_amount = goods_amount;
        this.goods_total = goods_total;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public int getGoods_amount() {
        return goods_amount;
    }

    public void setGoods_amount(int goods_amount) {
        this.goods_amount = goods_amount;
    }

    public double getGoods_total() {
        return goods_total;
    }

    public void setGoods_total(double goods_total) {
        this.goods_total = goods_total;
    }

    public String toString() {
        return "SaleGoods{" +
                "goods_id=" + goods_id +
                ", order_id=" + order_id  +
                ", goods_name='" + goods_name + '\'' +
                ", goods_amount=" + goods_amount +
                ", goods_total=" + goods_total +
                "}";
    }

//    public static void main(String[] args) {
//        SaleGoods sg = new SaleGoods(1,2,"上一个",1,100);
//        System.out.println(sg.toString());
//    }

}
